 package com.cxl.pattern.state;
 
 public class Context
 {
   public void request(int stateCode)
   {
     State state = new ConcreteStateA();
     if (stateCode == 1) {
       state = new ConcreteStateA();
     }
     if (stateCode == 2) {
       state = new ConcreteStateB();
     }
     state.handle(state.getClass().getName());
   }
 }

/* Location:           E:\work\eclipse3.6_\workspace\design_pattern\
 * Qualified Name:     com.cxl.pattern.state.Context
 * JD-Core Version:    0.6.1
 */